//package com.daxt.mapper.archives;
//
//
//import com.daxt.model.dto.DocBean;
//import org.springframework.data.domain.Page;
//import org.springframework.data.domain.Pageable;
//import org.springframework.data.elasticsearch.annotations.Query;
//import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
//import org.springframework.data.repository.CrudRepository;
//
//public interface ElasticRepository extends CrudRepository<DocBean, Long> {
////public interface ElasticRepository extends ElasticsearchRepository<DocBean, Long> {
//
//	Page findByTitleOrFileNameOrText(String title,String fileName,String text, Pageable pageable);
//
//	Page findByText(String text, Pageable pageable);
//
//	@Query("{\"bool\" : {\"must\" : {\"field\" : {\"firstCode.keyword\" : \"?\"}}}}")
//	Page<DocBean> findByTile(String tile, Pageable pageable);
//
//
//
////	//默认的注释
////	//@Query("{\"bool\" : {\"must\" : {\"field\" : {\"content\" : \"?\"}}}}")
////	Page findByContent(String content, Pageable pageable);
//
////	@Query("{\"bool\" : {\"must\" : {\"field\" : {\"firstCode.keyword\" : \"?\"}}}}")
////	Page<DocBean> findByFirstCode(String firstCode, Pageable pageable);
////
////	@Query("{\"bool\" : {\"must\" : {\"field\" : {\"secordCode.keyword\" : \"?\"}}}}")
////	Page<DocBean> findBySecordCode(String secordCode, Pageable pageable);
//
//}
